package com.gz.springboot.mybatisplus.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
//如果比数据库表名和类名首字母小写不对应，则需要@TableName指定
//@TableName(value = "monster_")
public class Monster {
    private Integer id;
    private Integer age;
    //GMT格林尼治标准时间
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "GMT+8")
    private Date birthday;
    private String email;
    private Integer gender;
    private String name;
    private Double salary;
}
